﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Problem6
{
	// What is the difference between the sum of the squares and the square of the sums?
	class Problem0006
	{
		static void Main(string[] args)
		{
			int sum = 0;
			int sumOfSquares = 0;
			for (int i = 1; i <= 100; i++)
			{
				sum += i;
				sumOfSquares += (i * i);
			}

			int squareOfSums = (sum * sum);

			Console.WriteLine((squareOfSums - sumOfSquares).ToString());
			Console.Read();
		}
	}
}
